import { findHeadCategory } from '@/api/home'
export default {
  namespaced: true,
  state: () => ({
    navs: []
  }),
  mutations: {
    setNavs (state, payload) {
      state.navs = payload
    }
  },
  actions: {
    async getNavsAction (cxt, payload) {
      const { result } = await findHeadCategory()
      // console.log(res)
      cxt.commit('setNavs', result)
    }
  }
}
